package com.kecheng.xinmei.dao;

import com.kecheng.xinmei.entity.*;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

/**
 * @author gaokecheng
 * @version 1.0
 * @date 2020/11/20 4:21 下午
 */
@Mapper
public interface AdminDao {
    int addDoctor(Doctor doctor);
    int updateDoctor(Doctor doctor);
    int addLunbo(Lunbo lunbo);
    @Delete("delete from lunbo where id = #{id}")
    int deleteLunbo(Integer id);
    int addTopic(Topic topic);
    int updateTopic(Topic topic);
    int addLife(Life life);
    int updateLife(Life life);
    int addPerson(Person person);
    @Delete("delete from person where id = #{id}")
    int deletePerson(Integer id);
    int updateIntroduction(Introduction introduction);
    @Delete("delete from introduction where id = #{id}")
    int deleteIntroduction(Integer id);

    int  addNews(News news);
    @Delete("delete from news where id = #{id}")
    int deleteNews(Integer id);

    int addResult(Result result);

    @Delete("delete from result where id = #{id}")
    int deleteResult(Integer id);
}
